package com.xlh.param.course;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 笔记
 * <p>
 * Created by lx on 2019/2/12 0012.
 */
@Data
public class NotesParam {

    @ApiModelProperty(value = "笔记类型")
    @NotNull(message = "笔记类型不能为空")
    private Integer notesType;

    @ApiModelProperty(value = "当前页数")
    private Integer pageNumber = 1;

    @ApiModelProperty(value = "笔记内容")
    @Length(max=20000,message="内容长度不能超过20000个字符")
    private String content;

}
